Android Games Design Patterns: Step by step use design pattern to build Android game framework by hu yang

Android Games Design Patterns: Step by step use design pattern to build Android game framework by hu yang

Author:hu, yang [hu, yang]
Language: eng
Format: epub
Published: 2020-06-03T16:00:00+00:00


protected void onCreate( Bundle savedInstanceState) {

supportRequestWindowFeature( Window. FEATURE_NO_TITLE);

getWindow(). setFlags( WindowManager. LayoutParams. FLAG_FULLSCREEN, WindowManager. LayoutParams. FLAG_FULLSCREEN);

super . onCreate( savedInstanceState);

Bitmap bluePlaneBitmap = BitmapFactory. decodeResource( getResources(), R. drawable. blue_plane);

ImageCache. put( "bluePlaneBitmap" , bluePlaneBitmap);

Bitmap redPlaneBitmap = BitmapFactory. decodeResource( getResources(), R. drawable. red_plane);

ImageCache. put( "redPlaneBitmap" , redPlaneBitmap);

Bitmap redBulletBitmap = BitmapFactory. decodeResource( getResources(), R. drawable. red_bullet);

ImageCache. put( "redBulletBitmap" , redBulletBitmap);

Bitmap blueBulletBitmap = BitmapFactory. decodeResource( getResources(), R. drawable. blue_bullet);

ImageCache. put( "blueBulletBitmap" , blueBulletBitmap);

Bitmap missileBulletBitmap = BitmapFactory. decodeResource( getResources(), R. drawable. missile_bullet);

ImageCache. put( "missileBulletBitmap" , missileBulletBitmap);

this . setContentView( new GameView( MainActivity. this , "1" ));



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.